﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Lavanderia.Entities;
using Lavanderia.Repository;
using Microsoft.Practices.Unity;

namespace Lavanderia.BL
{
    public class ClienteJuridicoBL:IClienteJuridicoBL
    {
        [Dependency]
        public IClienteJuridicoRepository cliJuriDAO { get; set; }

        public void AddClienteJiridico(CLIENTE_JURIDICO cliJuridico)
        {
            cliJuriDAO.AddClienteJiridico(cliJuridico);
        }

        public List<CLIENTE_JURIDICO> GetAllFromClienteJuridico()
        {
            return cliJuriDAO.GetAllFromClienteJuridico();
        }


        public List<CLIENTE_JURIDICO> GetAllFromClienteJuridicoByCriterio(string criterio)
        {
            return cliJuriDAO.GetAllFromClienteJuridicoByCriterio(criterio);
        }


        public CLIENTE_JURIDICO GetAllFromClienteJuridicoByRuc(string ruc)
        {
            return cliJuriDAO.GetAllFromClienteJuridicoByRuc(ruc);
        }


        public void UpdateClienteJuridico(CLIENTE_JURIDICO cliJuridico)
        {
            cliJuriDAO.UpdateClienteJuridico(cliJuridico);
        }
    }
}
